package com.wms.code;

public class MyCodeFactory {

    /**
     * 创建到货单编码
     * @param code
     * @return
     */
    public static String createArrivalCode(String code){
        WmsCode wmsCode=new MyArrivalStrategy();
        return wmsCode.generate(code);
    }

    /**
     * 创建批次号
     * @param code
     * @return
     */
    public static String createBatchCode(String code){
        WmsCode wmsCode=new BatchStrategy();
        return wmsCode.generate(code);
    }

    /**
     * 创建采购单号
     * @param code
     * @return
     */
    public static String createPurchaseCode(String code){
        WmsCode wmsCode=new PurchaseStrategy();
        return wmsCode.generate(code);
    }
}
